package com.itheima.d7_method_reference;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        String[] names ={"bode","angel","Snfa","Afes","Bjfa","seg"};

        Arrays.sort(names,String::compareToIgnoreCase);

        System.out.println(Arrays.toString(names));
    }
}
